﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Users {

    /// <summary>
    /// This interface is used for VISS.VN
    /// Used this interface to implement operations on UserLivingProfile table
    /// </summary>
    public interface IUserLivingProfile {

        /// <summary>
        /// Insert user living profile for a user
        /// </summary>
        /// <param name="item">The UserLivingProfileEnt item.</param>
        /// <returns>
        /// Return true if success, otherwise return false
        /// </returns>
        bool Insert(UserLivingProfileEnt item);

        /// <summary>
        /// Update user living profile of a user
        /// </summary>
        /// <param name="item">The UserLivingProfileEnt item.</param>
        /// <returns>
        /// Return true if success, otherwise return false
        /// </returns>
        bool Update(UserLivingProfileEnt item);

        /// <summary>
        /// Get user living profile of a user
        /// </summary>
        /// <param name="userKey">The user key.</param>
        /// <returns>Return UserApperanceProfileEnt if exists, otherwise return null</returns>
        UserLivingProfileEnt GetByUserKey(string userKey);
    }
}
